﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebEntities.Models.Framework
{
    public class MemGroup
    {
        public int GroupID { get; set; }
        public string GroupName { get; set; }
        public byte GroupType { get; set; }
        public DateTime CreateTime { get; set; }
        public string Creator { get; set; }

        public static MemGroup AsMemGroup(FW_MemGroup fwgrp)
        {
            MemGroup grp = new MemGroup
            {
                GroupID = fwgrp.GroupID,
                GroupName = fwgrp.GroupName,
                GroupType = fwgrp.GroupType,
                CreateTime = fwgrp.CreateTime,
                Creator = fwgrp.Creator
            };
            return grp;
        }
    }
}
